<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册表单</title>
</head>
<body>
<form method="post" action="/viewdemo/register/">
     {% csrf_token %}
    姓名：<input type="text" name="uname"/><br>
    密码：<input type="password" name="upwd"/><br>
    性别：<input type="radio" name="ugender" value="1"/>男
    <input type="radio" name="ugender" value="0"/>女<br> 爱好：
    <input type="checkbox" name="uhobby" value="抽烟"/>抽烟
    <input type="checkbox" name="uhobby" value="喝酒"/>喝酒
    <input type="checkbox" name="uhobby" value="烫头"/>烫头<br>
    <input type="submit" value="提交"/>
</form>
</body>
</html>